<div class="modal hide fade" id="modal-post">
	<div class="modal-header">
		<a class="close" data-dismiss="modal">×</a>
		<h3>
			<i class="icon-edit"></i>Post <span id="type-span">Text</span> to <select
				id='share-blog-id'>
				<?php foreach ($own as $blog):?>
					<option value="<?php echo $blog['bid']?>"
					<?php if ($this->session->userdata ( 'blog_id' )==$blog['bid']){echo 'selected';}?>><?php echo $blog['bname']?></option>
				<?php endforeach;?>
				<?php foreach ($manage as $blog):?>
					<option value="<?php echo $blog['bid']?>"
					<?php if ($this->session->userdata ( 'blog_id' )==$blog['bid']){echo 'selected';}?>><?php echo $blog['bname']?></option>
				<?php endforeach;?>			
			</select>
	
	</div>
	<div class="modal-body">


		<div class="btn-group" data-toggle="buttons-radio">
			<button class="btn active" id="btn-text"
				onClick="change_post_type('Text')">
				<i class="icon-align-justify"></i>Text
			</button>
			<button class="btn" id="btn-img"
				onClick="change_post_type('Picture')">
				<i class="icon-picture"></i>Photo
			</button>
			<button class="btn" id="btn-link" onClick="change_post_type('Link')">
				<i class="icon-star"></i>Link
			</button>
			<button class="btn" id="btn-music"
				onClick="change_post_type('Music')">
				<i class="icon-music"></i>Music
			</button>
			<button class="btn" id="btn-vedio"
				onClick="change_post_type('Vedio')">
				<i class="icon-film"></i>Vedio
			</button>
		</div>
		<hr style='margin: 5px' />
		<!-- post text -->
		<div class="post-area" id="post-area-text">
			<div class="control-group" id="post-text-title-cg">
				<label class="control-label" for="input-text-title">Title</label>
				<div class="controls">
					<input type="text" class="input-xlarge" style="width: 513px"
						placeholder="title is optional ..." id="input-text-title">
				</div>
			</div>
			<div class="control-group" id="post-text-content-cg">
				<label class="control-label" for="content"></label>
				<div class="controls">
					<textarea id="input-text-content" style="width: 513px"
						class="input-xlarge" rows="6"></textarea>
				</div>
			</div>
		</div>
		<!-- end of post text -->

		<!-- post pic -->
		<div class="post-area hide" id="post-area-picture">
			<a class="btn btn-success" onclick="$('#image-up').click()"
				style='margin: 5px' id='btn-up-image'>choose picture</a> <input
				type="file" class="hide" name="image-up" id="image-up"
				onchange='upload_image()' />
			<p class="alert alert-error hide" id="post-image-hint"></p>
			<textarea id="input-image-escription" style="width: 513px"
				class="input-xlarge" rows="3"></textarea>
		</div>
		<!-- end of post pic -->

		<!-- post link -->
		<div class="post-area hide" id="post-area-link">
			<div class="control-group" id="post-link-title-cg">
				<label class="control-label" for="input-link-title">Page Address</label>
				<input type="text" class="input-xlarge" style="width: 513px"
					placeholder="the link you want ..." id="input-link-url"
					onBlur="get_link_title()"> <span class='hide btn' id='link-ctn'
					style="width: 513px"
					onclick="$('#link-ctn').hide();$('#input-link-url').show();$('#input-link-url').focus();">
				</span>
			</div>
			<div class="control-group" id="post-link-content-cg">
				<textarea id="input-link-escription" style="width: 513px"
					class="input-xlarge" rows="6"></textarea>
			</div>
		</div>
		<!-- end of post link -->
		<!-- post music -->
		<div class="post-area hide" id="post-area-music">music</div>
		<!-- end of post music -->

		<!-- post vedio -->
		<div class="post-area hide" id="post-area-vedio">vedio</div>
		<!-- end of post vedio -->

		<hr />
		<div>
			Tags:<br /> <small class='btn disabled' onClick="show_tag_edit()"
				id="tags-display">Click to add tags</small> <span class="hide"
				id="tags-edit"><input type="text" onBlur='split_tags()' /></span>
		</div>

	</div>
	<div class="modal-footer">
		<a href="#" class="btn" id="sign-btn"
			onclick="$('#modal-post').modal('hide')">Cacel</a> <a href="#"
			class="btn btn-primary" id="post-btn" onClick="post()">Post</a>
	</div>
</div>

<script type="text/javascript"
	src="<?php echo base_url("public/script/post.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/script/tag.js")?>"></script>